package com.oa.modules.approvalsec1.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: Hankaicheng
 * @Date: 2022/5/5 14:13
 */
@Data
@TableName("matters")
@ApiModel("服务事项")
public class MattersEntity implements Serializable {

    @Id
    private Integer id;

    @ApiModelProperty("服务事项名称")
    private String name;

    @ApiModelProperty("父类id")
    private Integer parentid;

    @ApiModelProperty("子服务事项")
    @TableField(exist = false)
    private List<MattersEntity> children;



}
